package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.PaymentsMapper;
import com.ruoyi.system.domain.Payments;
import com.ruoyi.system.service.IPaymentsService;

/**
 * 支付信息Service业务层处理
 * 
 * @author codernight
 * @date 2025-03-17
 */
@Service
public class PaymentsServiceImpl implements IPaymentsService 
{
    @Autowired
    private PaymentsMapper paymentsMapper;

    /**
     * 查询支付信息
     * 
     * @param id 支付信息主键
     * @return 支付信息
     */
    @Override
    public Payments selectPaymentsById(Long id)
    {
        return paymentsMapper.selectPaymentsById(id);
    }

    /**
     * 查询支付信息列表
     * 
     * @param payments 支付信息
     * @return 支付信息
     */
    @Override
    public List<Payments> selectPaymentsList(Payments payments)
    {
        return paymentsMapper.selectPaymentsList(payments);
    }

    /**
     * 新增支付信息
     * 
     * @param payments 支付信息
     * @return 结果
     */
    @Override
    public int insertPayments(Payments payments)
    {
        return paymentsMapper.insertPayments(payments);
    }

    /**
     * 修改支付信息
     * 
     * @param payments 支付信息
     * @return 结果
     */
    @Override
    public int updatePayments(Payments payments)
    {
        return paymentsMapper.updatePayments(payments);
    }

    /**
     * 批量删除支付信息
     * 
     * @param ids 需要删除的支付信息主键
     * @return 结果
     */
    @Override
    public int deletePaymentsByIds(Long[] ids)
    {
        return paymentsMapper.deletePaymentsByIds(ids);
    }

    /**
     * 删除支付信息信息
     * 
     * @param id 支付信息主键
     * @return 结果
     */
    @Override
    public int deletePaymentsById(Long id)
    {
        return paymentsMapper.deletePaymentsById(id);
    }
}
